QR or LQ factorization.
Performs QR factorization with optional pivoting or LQ factorization. The pivoting of columns in the calling matrix is performed only when P is not nil and Rows > Cols.
The P[i] holds the permutation of columns in A, so that:
LQR Method